package top.beiermode.geektime.projects.user.service;

import top.beiermode.geektime.projects.user.domain.User;
import top.beiermode.geektime.projects.user.sql.LocalTransactional;

/**
 * 用户服务
 *
 * @author Chen Song
 * @since 1.0
 */
public interface UserService {

    @LocalTransactional
    boolean register(User user);


    boolean deregister(User user);

    boolean update(User user);

    User queryUserById(Long id);

    User queryUserByNameAndPassword(String name, String password);
}
